{extend name="public/base" /} {block name="title"}
<title>搜索：{$Request.param.keyword}</title>
<meta name="keywords" content="{:config('web.site_keywords')}">
<meta name="description" content="{:config('web.site_description')}"> {__block__} {/block} {block name="content"}
<div class="col-sm-8">
    <div class="ibox">
        <div class="ibox-content">
            {notempty name="errmsg"}
            <h2>{$errmsg}</h2>
            {else/}
            <h2>
                为您找到相关结果约{$count}个： <span class="text-navy">“{$Request.param.keyword}”</span>
            </h2>
            <div class="search-form">
                <form action="?" method="get">
                    <div class="input-group">
                        <input type="text" placeholder="{$Request.param.keyword}" name="keyword" class="form-control input-lg">
                        <div class="input-group-btn">
                            <button class="btn btn-lg btn-primary" type="submit">搜索</button>
                        </div>
                    </div>
                </form>
            </div>
            {foreach $article_list as $article}
            <div class="hr-line-dashed"></div>
            <div class="search-result">
                <h3><a href="{:url('index/index/article',['id'=>$article['id']],'html',true)}">{$article.title}</a></h3>
                <a href="{:url('index/index/article',['id'=>$article['id']],'html',true)}" class="search-link">{:url('index/index/article',['id'=>$article['id']],'html',true)}</a>
                <p>
                    {$article.description}
                </p>
            </div>
            {/foreach}
            <div class="hr-line-dashed"></div>
            <div class="text-center">{$article_list->render()}</div>
            {/notempty}
        </div>
    </div>
</div>
{/block} {block name="script"}{__block__} {/block}